package cc.rengu.redp.bizimpl.igas.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 刘玉亮.LL
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("T_P_CERT_INFO")
@ApiModel(value = "PCertInfo对象", description = "")
public class PCertInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "证书索引")
    @TableField("CERT_INDEX")
    @TableId(type= IdType.ASSIGN_ID)
    private String certIndex;

    @ApiModelProperty(value = "证书编号")
    @TableField("CERT_ID")
    private String certId;

    @ApiModelProperty(value = "证书序列号")
    @TableField("CERT_DN")
    private String certDn;

    @ApiModelProperty(value = "证书有效期")
    @TableField("CERT_EXPIRY_DATE")
    private String certExpiryDate;

 /*   @ApiModelProperty(value = "证书密码")
    @TableField("CERT_PASSWORD")
    private String certPassword;*/

    @ApiModelProperty(value = "证书内容")
    @TableField("CERT_VALUE")
    private String certValue;

    @ApiModelProperty(value = "算法类型")
    @TableField("ALGORITHM_TYPE")
    private String algorithmType;

    @ApiModelProperty(value = "证书发行机构")
    @TableField("CERT_ISSUE_ID")
    private String certIssueId;

    @ApiModelProperty(value = "证书签发日期")
    @TableField("CERT_ISSUE_DATE")
    private String certIssueDate;

    @ApiModelProperty(value = "证书签发时间")
    @TableField("CERT_ISSUE_TIME")
    private String certIssueTime;

    @ApiModelProperty(value = "证书存储类型")
    @TableField("CERT_SAVE_TYPE")
    private String certSaveType;

    @ApiModelProperty(value = "证书存储路径")
    @TableField("CERT_SAVE_PATH")
    private String certSavePath;

    @ApiModelProperty(value = "证书状态")
    @TableField("KEY_STATUS")
    private String certStatus ="Y";

    @ApiModelProperty(value = "证书描述")
    @TableField("KEY_DESC")
    private String keyDesc;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    private String updateTime;

    @ApiModelProperty(value = "备用字段1")
    @TableField("REMARK1")
    private String remark1;

    @ApiModelProperty(value = "备用字段2")
    @TableField("REMARK2")
    private String remark2;


}
